package com.iweb.userOrder.service;

import com.iweb.userOrder.dao.OrdersDao;
import com.iweb.userOrder.dao.OrdersDaoImpl;
import com.iweb.userOrder.model.Orders;
import com.iweb.util.PageModel;

import java.util.List;

public class OrdersServiceImpl implements OrdersService{

    OrdersDao ordersDao = new OrdersDaoImpl();

    @Override
    public List<Orders> selectByPage(PageModel pageModel) {
        return ordersDao.selectByPage(pageModel);
    }

    @Override
    public int addOne(Orders orders) {
        return ordersDao.addOne(orders);
    }

    @Override
    public Orders queryById(String order_id) {
        return ordersDao.queryById(order_id);
    }

    @Override
    public int updateOne(Orders orders) {
        return ordersDao.updateOne(orders);
    }

    @Override
    public int deleteById(String order_id) {
        return ordersDao.deleteById((order_id));
    }
}
